<?php

/**
 * Created by hbbzy.me.
 * project: frame
 * User: hbbzy
 * Date: 2018/2/21
 * Time: 15:35
 */
namespace app\backend\model;

use think\Db;
use think\Model;
class UserModel extends Model
{
    public function checkLogin(){
        return !empty(session('user'));
    }

    public function getPWD($passwd,$halt){
        return sha1($passwd.$halt);
    }
}